//
//  ZDXXibTextField.m
//  Carloan-Manage
//
//  Created by mac on 2017/12/1.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "ZDXXibTextField.h"

@implementation ZDXXibTextField

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (self) {
        
        self.backgroundColor = ClearColor;
        self.textColor =RGBCOLOR(175, 176, 178);
    }
    return self;
}

-(NSMutableAttributedString*)setTextFieldPlaceholderWithPlaceholderTitle:(NSString*)placeholderTitle PlaceholderColor:(UIColor*)placeholderColor font:(float)fontSize{
    
    NSString *holderText = placeholderTitle;
    NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc] initWithString:holderText];
    [placeholder addAttribute:NSForegroundColorAttributeName
                        value:placeholderColor
                        range:NSMakeRange(0, holderText.length)];
    [placeholder addAttribute:NSFontAttributeName
                        value:[UIFont systemFontOfSize:fontSize]
                        range:NSMakeRange(0, holderText.length)];
    return placeholder;
}
@end
